#include "car_power_range_struct_csv.hpp"
#include "type_conversion.hpp"


car_power_range_struct_csv::car_power_range_struct_csv(std::vector<std::string> const& v)
{

	   switch(v.size()-1)
 	   {
		case NOTE:
			set_notes(v[NOTE]);
		case POWER_MIN:
			set_min_power(type_conversion<int>::to_number(v[POWER_MIN]));
		case POWER_MAX:
			set_max_power(type_conversion<int>::to_number(v[POWER_MAX]));
		case ID:
			set_id(type_conversion<int>::to_number(v[ID]));
			break;
		default: break;
	   }

//		std::cout << "[car_power_range_struct_csv.car_power_range_struct_csv] " << *this << std::endl;
}